/*
 *
 * 
 */
package client.controller;

import java.io.*;
import java.net.*;

class TCPClient {

    private BufferedReader inFromUser = new BufferedReader(new InputStreamReader(System.in));
    private Socket clientSocket = new Socket("localhost", 6789);
    private DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream());
    private BufferedReader inFromServer = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));

    public TCPClient(int port) throws Exception {
       inFromUser = new BufferedReader(new InputStreamReader(System.in));
       clientSocket = new Socket("localhost", port);
       outToServer = new DataOutputStream(clientSocket.getOutputStream());
       inFromServer = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
    }  
  
    public void criarSala() {
        
    }

    public void iniciarJogo() {
    }

    public static void main(String argv[]) throws Exception {
        String sentence;
        String modifiedSentence;

        /*sentence = inFromUser.readLine();
        outToServer.writeBytes(sentence + '\n');
        modifiedSentence = inFromServer.readLine();
        System.out.println("FROM SERVER: " + modifiedSentence);
        clientSocket.close();*/
    }
}